


import bpy
import bmesh
import 全局控制.Node.节点和插座基类.bl_节点基类 as 基类




import pdb



def f_代码头置入_float(self, context):
	代码头 = '# 计算数A:AValue, 计算数B:BValue, data:0.0'
	self.m_Code.lines[0].body = 代码头

class C_Node_网格顶点(基类.C_SN_基类):
	bl_dname = 'bl_node_拷贝面到物体'
	bl_label = '拷贝面到物体'
	
	m_Code = bpy.props.PointerProperty(type=bpy.types.Text, update=f_代码头置入_float)

	def init(self, context):
		super(C_Node_拷贝面到物体, self).f_init(context)
		self.inputs.new('C_NodeSocket_物体', name='物体')
		self.outputs.new('C_NodeSocket_网格', name='网格')


	def f_update(self, 是否向下传递=False, input插座=None):
		self.inputs.new('C_NodeSocket_ni', name='Int_List')

		if self.m_Code != None :
			pass
		else:
			pass

		#me.from_pydata(vertices=顶点, edges=[(0,1)], faces=索引)
		super(C_Node_拷贝面到物体, self).f_update(是否向下传递, input插座)



class C_NODE_AddMenu_拷贝面到物体(bpy.types.Operator):
	bl_idname = 'node.global_node_int_container_add'
	bl_label = '拷贝面到物体'
	bl_options = {'REGISTER', 'UNDO'}
	
	def execute(operator, context):
		bpy.ops.node.add_node(type='C_Node_拷贝面到物体', use_transform=True)
		return {'FINISHED'}









classes = (
	C_Node_拷贝面到物体,
	C_NODE_AddMenu_拷贝面到物体,
)

def register():
	for c in classes:
		bpy.utils.register_class(c)
		
def unregister():
	for c in classes:
		bpy.utils.unregister_class(c)
	



